using System;

namespace DataStubGenerator.Exceptions
{
    public class LoggableException : ApplicationException, ILoggable
    {
        public bool ShouldDisplay
        {
            get { return _shouldDisplay; }
        }

        public string Caption
        {
            get { return _caption; }
        }

        private string _caption;
        private readonly bool _shouldDisplay;

        public LoggableException(bool shouldDisplay, string message, string caption) : base(message) {
            _shouldDisplay = shouldDisplay;
            _caption = caption;
        }
    }

    internal interface where {}
}